

let newList = [1, 2, 3].push(4)

console.log(newList.push(5))

const emojis = ['✨', '🥑', '😍']

emojis.map(x => x + '✨')
emojis.filter(x => x !== '🥑')
emojis.find(x => x !== '🥑')
emojis.reduce((acc, cur) => acc + '✨')
emojis.slice(1, 2, '✨') 
emojis.splice(1, 2, '✨')


const output = `${[] && 'Im'}possible!
You should${'' && `n't`} see a therapist after so much JavaScript lol`


const one = (false || {} || null)
const two = (null || false || "")
const three = ([] || 0 || true)

console.log(one, two, three)


let name = 'Lydia'

function getName() {
  console.log(name)
  let name = 'bug王'
}

getName()

const randomValue = 21;

function getInfo() {
	console.log(typeof randomValue);
	const randomValue = "Lydia Hallie";
}

getInfo();



console.log(`${(x => x)('I love')} to program`)




let config = {
  alert: setInterval(() => {
    console.log('Alert!')
  }, 1000)
}

config = null